#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int arr1[] = { 2,4,12,27,30,100 };
	int arr2[] = { 1,10,33,40,41,44,48 };
	int a = sizeof(arr1) / sizeof(arr1[0]);
	int b = sizeof(arr2) / sizeof(arr2[0]);
	int i = 0;
	int j = 0;
	while(i < a && j < b)
	{
		if (arr1[i] < arr2[j])
		{
			printf("%d ", arr1[i]);
			i++;
		}
		else
		{
			printf("%d ", arr2[j]);
			j++;
		}
	}
	if (i==a)
	{
		while (j < b)
		{
			printf("%d ", arr2[j]);
			j++;
		}
	}
	else
	{
		while (i < a)
		{
			printf("%d ", arr1[i]);
			i++;
		}
	}
	return 0;
}